﻿<%@ Page  Language="C#" MasterPageFile="~/Master/Site.Master" AutoEventWireup="true" CodeBehind="Post.aspx.cs" Inherits="DjBlog.Blog.Post" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title><%= post == null ? "阿拉神丁" : post.Title + "-阿拉神丁"%></title>
<meta name="keywords" content="<%= (post==null?"":post.Title+",")+"alashending,阿拉神丁,前端设计,互联网,摄影,f2e" %>" />
<meta name="description" content="<%= post!=null?post.Excerpt:"阿拉神丁的博客，关注前端开发，关注用户体验，喜欢摄影。" %>" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    
     <div  class="post">
        <div class="tlist">
            <%if (post != null && post.ID > 0)
              { %>
            <dl>
                <dt><i><% =DjCommon.Utils.GetMonthSim(post.CreateDate.Month)%></i><br /><%=post.CreateDate.Day%></dt>
                <dd><b><a class="ddH3" title="" href="<%=DjCommon.Utils.GetArticleUrl(post.ID) %>" rel="bookmark"><%=post.Title%></a></b></dd>
                <dd><%=DjBll.Term.GetTagHtml(post.CatString,0) %> | 
                    <a href="<%=DjCommon.Utils.GetArticleUrl(post.ID) %>#comment" title=""><%=post.CommentCount%> comments</a> | <%=DjCommon.Utils.GetMonthSim(post.CreateDate.Month)%>&nbsp;<%=post.CreateDate.Year%> 
                </dd>
            </dl>
            <p3>
                <%=HttpContext.Current.Server.HtmlDecode(post.Content)%>
	        </p3>
	        <%} %>
        </div>
    </div>
    <div id="comments" class="post-comments">
        <%if (commentlist != null && commentlist.Count > 0)
          {
              foreach (DjModel.CommentInfo comment in commentlist)
              { %>
        <div class="bbslist">
            <div class="comment">
                <div style="margin: 0px; border: currentColor;" class="bbslist">
                    <dl style="padding: 5px 0px; border: currentColor;" class="dlClass">
                        <dt><img alt="" src="../image/nohead.png" width="54" height="54" /></dt>
                        <dd class="bSt">
                            <b><a href="#" rel="external nofollow"><%=comment.Author %></a></b> <span><%=comment.CommentDate.ToString("yyyy-MM-dd") %></span>
                        </dd>
                        <dd>
                            <p><%= comment.Content %></p>
                            <span><a class="comment-reply-link" href="#">Reply</a>
                                <a title="Permanent Link for this comment" href="#comment-90"></a>
                            </span>
                        </dd>
                    </dl>
                </div>
            </div>
        </div>
        <%}
          } %>
    </div>
    <%if (post != null && post.ID > 0)
      {%>
    <div id="respond" class="post-comments comment-form">
        <h2>Leave your comment</h2>
        <table>
            <tbody>
                <tr>
                    <th>
                        <input id="author" tabindex="1" name="author" value="" style="border-width:2px" size="22" type="text" />
                    </th>
                    <td style="width: 405px;">
                        <label for="author"><b><span style="color: rgb(102, 102, 102);">Name</span></b><span style="color: rgb(153, 153, 153);">(required)</span></label>
                    </td>
                </tr>
                <tr>
                    <th>
                        <input id="email" tabindex="2" name="email" value="" size="22" type="text" style="border-width:2px" />
                    </th>
                    <td>
                        <label for="email"><b><span style="color: rgb(102, 102, 102);">Mail</span></b> <span style="color: rgb(153, 153, 153);">(will not be published) (required)</span></label>
                    </td>
                </tr>
                <tr>
                    <th>
                        <input id="url" tabindex="3" name="url" value="" size="22" type="text" style="border-width:2px" />
                    </th>
                    <td>
                        <label for="url"><b><span style="color: rgb(102, 102, 102);">Website</span></b></label>
                    </td>
                </tr>
                <tr>
                    <th colspan="2">
                        <textarea style="width: 480px; border-width:2px" id="comment" tabindex="4" cols="60" rows="5" name="comment" ></textarea>
                    </th>
                </tr>
                <tr>
                    <th style="width: 700px;" colspan="2">
                        <input id="submit" value="Submit" type="button" />
                        <input type="hidden" id="postid" value="<%=post.ID %>" />
                    </th>
                </tr>
            </tbody>
        </table>
    </div>
    <%} %>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="foot" runat="server">

</asp:Content>
